class Event < ActiveRecord::Base
  has_and_belongs_to_many :games
  has_and_belongs_to_many :links
  has_and_belongs_to_many :tags
  has_many					      :events_submitters,	:dependent => :destroy
  has_many					      :submitters,		    :through => :events_submitters

  def self.get_recent_events_summary
    #Reduce this down to a date range or perhaps limit to the last 10 or so.
    Event.find(:all, :include => [:games])
  end

 #Faction.find(:all, :include => :images, :conditions => ["images.image_type = ?", Image::ICON.to_s()])
end

# vi:ts=2:et:sw=2:
